how to determine the crystal structure of a metal